Repository navigation
Conversation
Collaborator
Author
|
最终实现已由 #375 完整整合并合入 main;关闭此旧草稿,避免重复合并旧代码。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
结论
完成审计清单 #2、#10、#21,并追加编辑器内容命令静默丢失与脏笔记切换过早的根因修复;最新提交已经把“收到内存快照”和“已安全写盘”分开,等待主任务整合复核,现有提交仍暂缓整合。
独立提交
a15c3cb5cd896abe8e68741f45d6a25521f843e0:脏笔记等待真实快照被持久化链路接收后再切换(暂缓整合)。b25b03797e21fe8ec7e8eb68f52a5224f8c5415f:内容命令保序、网页回执与幂等重试(暂缓整合)。b348724f11a4856a1dc0cd4619b1ad8dc86d3452:切换前等待来源笔记的内容命令确认;派发时固定来源笔记与代际,脚本未接收立即拒绝,真实应用回执后才进入原有快照保存链。d0cb4cc650b591a79d9469e53bc81832d001f298:内容命令进入状态仓库公开绑定时立即锁定来源笔记,真实应用回执才解除;滚动定位不阻塞。回归改走真实发布入口,并把旧百行网页检查拆成“超过 16 条不丢”和“拒绝后可重试”两项短合同,共用一个夹具。16db82bd4d270077bce6049be0fac82fdf77e60b:快照被接受后不再立即切换;复用现有文件写入凭据或等待真实工作区写入成功,随后复验文档、修订和正文摘要。工作区写入失败时保留原笔记与最后目标,用户重试成功后才切换。共享文件占用与释放条件
Sources/WeiBei/Stores/WorkspaceStore.swift;本分支此前还改过NotesAgentView.swift、RichMarkdownEditorView.swift、WorkspaceStore+NotesPersistence.swift与对应测试。ContentView.swift沿用现有状态横幅,没有新增改动。codex/audit-editor-resilience(PR fix: 熔断编辑器重建并协调笔记写入 #371)。最新持久化确认竞态已形成独立提交并推送;暂不宣布最终释放。16db82bd的“真实写盘成功 + 完成后版本复验”语义,保留d0cb4cc6的发布时来源绑定和两个短网页合同,并解决与数据分支的重叠后,再明确释放这些共享文件。WorkspaceStore+NotesPersistence.swift、NotesAgentView.swift;整合时同时保留本分支“协调区间内最终重读 + 原子写入”和 fix: 只在写后校验通过时标记笔记已保存 #369 的写后复验/保存状态。main已有重叠编辑器改动,本 PR 显示冲突;按集中整合约定,本分支不自行重放或解冲突。验证
swift build:通过(固定使用本机已安装的 macOS 15.4 SDK)。WeiBeiWebEditorCheck:通过。no such module 'XCTest',不表述为测试已执行,交远端检查运行。main有重叠冲突,尚不是可验收候选;由主任务集中整合并通过远端检查后再做候选 App 冒烟。边界